package com.gxa.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gxa.admin.group.Login;
import com.gxa.admin.group.Reg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @description 
 * @author 蔚枫
 * @date  2021/7/20 22:35
 * @version 1.0
 * Talk is cheap. Show me the code
 */
/**
    * 店铺申请表
    */
@ApiModel(value="店铺申请表")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopApply implements Serializable {
    /**
    * 店铺申请id
    */
    @ApiModelProperty(value="店铺申请id")
    private Long shopApplyId;

    /**
    * 店铺名称
    */
    @ApiModelProperty(value="店铺名称")
    private String shopApplyName;

    /**
    * 店铺图片
    */
    @ApiModelProperty(value="店铺图片")
    private String shopApplyImage;

    /**
    * 经营主体
    */
    @ApiModelProperty(value="经营主体")
    private String shopApplyBusinessEntity;

    /**
    * 申请时间
    */
    @ApiModelProperty(value="申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp shopApplyCreateTime;

    /**
    * 店铺地址
    */
    @ApiModelProperty(value="店铺地址")
    private String shopApplyAddress;

    /**
    * 联系人
    */
    @ApiModelProperty(value="联系人")
    private String shopApplyContactPerson;

    /**
    * 联系电话
    */
    @ApiModelProperty(value="联系电话")
    private String shopApplyPersonPhone;

    /**
    * 电子邮箱
    */
    @ApiModelProperty(value="电子邮箱")
    private String shopApplyEmail;

    /**
    * 审核人账号id
    */
    @ApiModelProperty(value="审核人账号id")
    @NotEmpty(message = "审核人账号id不能为空!!",groups = {Reg.class, Login.class})
    private Integer shopApplyAuditorId;

    /**
    * 审核人
    */
    @ApiModelProperty(value="审核人")
    @NotEmpty(message = "审核人账号id不能为空!!",groups = {Reg.class, Login.class})
    private String shopApplyAuditor;

    /**
    * 审核状态，0未审核，1已审核
    */
    @ApiModelProperty(value="审核状态，0未审核，1已审核")
    @NotEmpty(message = "审核状态不能为空!!",groups = {Reg.class, Login.class})
    private Integer shopApplyAudit;

    /**
    * 审核时间
    */
    @ApiModelProperty(value="审核时间")
    @JsonFormat(pattern = "yyyy-dd-MM HH:ss:mm",timezone = "GMT+8")
    private Timestamp shopApplyAuditTime;

    /**
    * 审核结果
    */
    @ApiModelProperty(value="审核结果")
    @NotEmpty(message = "审核结果不能为空!!",groups = {Reg.class, Login.class})
    private String shopApplyResult;

    private static final long serialVersionUID = 1L;
}